package com.power.feign;

import com.power.domain.Member;
import com.power.feign.sentinel.ProdMemberFeignSentinel;
import com.power.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Description 商品业务模块调用会员业务模块的Feign接口
 * @Author dingchunlin
 * @Date 2024/07/22 11:31
 * @Version 1.0.0
 */
@FeignClient(value = "member-service" , fallback = ProdMemberFeignSentinel.class)
public interface ProdMemberFeign {

    @GetMapping("/p/user/getMemberListByOpenIds")
    Result<List<Member>> getMemberListByOpenIds(@RequestParam List<String> openIds);
}
